public Object[][] executeSelectQuery(String query) {
		connectDB();
		Object[][] result = null;
		PreparedStatement stmt = null;
		ResultSet rs = null;
		try {
			stmt = dbConnection.prepareStatement(query,ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_UPDATABLE);
			rs = stmt.executeQuery();
			ResultSetMetaData rsmd=rs.getMetaData();
			int column_length = rsmd.getColumnCount();
			rs.last();
			int row_length = rs.getRow();
			rs.beforeFirst();
			
			result = new Object[row_length][column_length];
			int i=0;
			while(rs.next()){
				for(int j=1;j<=column_length;j++){
//					System.out.println(rs.getObject(j).toString());
					result[i][j-1] = rs.getObject(j);
//					System.out.println(result[i][j].toString());
				}
				i++;
			}
		} catch (SQLException e) {
//			e.printStackTrace();
		}finally{
			if(rs != null)try{rs.close();}catch(Exception e){};
			if(stmt != null)try{stmt.close();}catch (Exception e){};
			if(dbConnection != null)try{dbConnection.close();}catch (Exception e){};
		}
		return result;
	}