DB connection, file structure