database update with temp local database