added output for parsing
updated files to parse data into db
updated db interactions to use prepared statements
removed extra 'end'
fixed some bugs