updated the database