edits to db