Using mocks to prevent db connections in test