edits to database