I think I've fixed it to the point that it's inserting into the DB