Working upload and database file upload