added saving of file upload extension; tweaked drop-everything.sql