Attempting to use a more DB agnostic stubbed out query for testing