change approach and update db