Added a Method to get the Raw TableQuery for manual mapping