Updating database.