Finally got db connection working... wow. So annoyingly hard. Next up: services.