changed database to update