<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_query(self, query, values):
 """ Executes a query to the test_db and closes the connection afterwards. """

        retval = self.cursor.execute(query, values)
        self.__close_db()
        return retval