private ResultSet executeQuery(String query) throws MainException {

		try {
			Statement stmt = dbConnection.createStatement();
			ResultSet results = stmt.executeQuery(query);
			return results;

		} catch(SQLException e){
			e.printStackTrace();
			throw new MainException("Exception when executing the query : " + query + "\nException message : " +e.getMessage());

		}

	}