def query(self, query, fetchall=False, **params):
with self.get_connection() as conn:<EOL><INDENT>return conn.query(query, fetchall, **params)<EOL><DEDENT>
Executes the given SQL query against the Database. Parameters can,
        optionally, be provided. Returns a RecordCollection, which can be
        iterated over to get result rows as dictionaries.