update local object data after fetching from db