def METHOD_NAME(self, http_object, browser, ua):
    c = self.connection.cursor()
    obj = UAObject(browser, ua)
    obj.copy_data(http_object)
    c.execute("SELECT MAX(id) FROM ua")
    rowid = c.fetchone()[0]
    if rowid is None:
        rowid = 0
    obj.id = rowid + 1
    pobj = sqlite3.Binary(pickle.dumps(obj, protocol=2))
    c.execute(("INSERT INTO ua (parent_id, object, complete, key)"
               " VALUES (?,?,?,?)"),
              (http_object.id, pobj, False, browser))
    self.connection.commit()
    c.close()
    return obj