updated spreadthesign_add_db for upserts