Added a CreateQuery for building tables dynamically