Mock db access in the services tests.