Update to db