added some helpers to mock Doctrine db connections and queries