passes controller instance to handler
added database handler
removed subrouter for serving the root url
added error handling in templates