unit tests set up, still not fully grokking db connections