fix stackoverflow issue

when grabbing the sql object, the method was getting called over and
over again, thus causing a stackoverflow.  Made a quick unit test to
expose and fix the issue.

Also removed an unused class in ConfigServiceSpec