Update for database