updated the databse