Files and database setup