Adding basic routes, prefs file, and db connectivity.