update server logic when fetching record