db now flows through controllers