first updates to db and pop