database queries done!, now need to do updates/inserts/deletes