changed database updating