refactored edit, submit, update, and view

check for new file upload, reflect updated schema, included create table
sql for reference