code: def query_fetch_one(self, query, values):
          
          self.cursor.execute(query, values)
          retval = self.cursor.fetchone()
          self.__close_db()
          return retval
docs: Executes a db query, gets the first value, and closes the connection.