updated the db