11 hours of trying to get my edit function debugged. Giving up and moving on.