public ResultSet sqlQuery(String query) {
		try {
			Connection connection = getConnection();
		    Statement statement = connection.createStatement();
		    
		    ResultSet result = statement.executeQuery(query);
		    
		    return result;
		} catch (SQLException ex) {
			if (ex.getMessage().toLowerCase().contains("locking") || ex.getMessage().toLowerCase().contains("locked")) {
				return retryResult(query);
			}else{
				core.writeError("Error at SQL Query: " + ex.getMessage(), false);
			}
			
		}
		return null;
	}