Changed around some file extensions. Implemented some code to upload
files to the database.