add changes to db