Adding files and database