updating db fields