<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _execute(self, stmt, *values):
 """ Gets a cursor, executes `stmt` and closes the cursor, fetching one row afterwards and returning its result. """

        c = self._cursor()
        try:
            return c.execute(stmt, values).fetchone()
        finally:
            c.close()