'Execute an SQL statement with substitution values and return
a list of rows from the database.'

def query(self, statement, subvals=()):

    cursor = self.db._connection().execute(statement, subvals)
    return cursor.fetchall()
