somewhat finalize file handling code. still need to decide if im going
to store file information (such as name, location, etc) in the database
or not - probably should.