Changes to file uploading, database