added update value to database and api result