updates to db