update db fields