Adding subDoc Query functionality