database, static pages controller and homepage set up