process profile edits

sanitizes input & writes to db