hooks up config and db, adds static file serving