updated adding to db