         }
     }
 
-    var dbconfig: DBConfig
+    var databaseConfig: DatabaseConfig
+    var serverConfig: ServerConfig
+    var siteConfig: SiteConfig
     var routes: Routes
     var controller: SiteController
 



        let server = HTTPServer()
        server.serverAddress = "localhost"
        server.serverPort = 8080
        server.addRoutes(routes)
        server.documentRoot = "./webroot" // Setting the document root will add a default URL route which permits static files to be served from within.


                            }

                            // Validate file size
                            guard upload.fileSize > 0 && upload.fileSize < self.siteConfig.uploadSizeLimit else {
                                return self.controller.error(session: session, message: "File size")
                            }

