upadted the database