adding changes to db