Updating the db