updated php code and some portions of DB to modularize database pulls and pushes, added file handling and insertions
updated form with proper pulling from db form generation, writing to DB, populating form with current DB content, logging in, form validation, duplicate checking