update db saving