added file clearing function
added db migration scripts
Upload files linked to users