<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def Query(self, query):
 """Queries the database. Args: query (str):
 SQL query. Returns: sqlite3.Cursor: results. Raises: sqlite3.DatabaseError: if querying the database fails. """

    cursor = self._database.cursor()
    cursor.execute(query)
    return cursor