Got configuration, templating, and database connection working