Create d3b_query.py

- Simplified query creation. Instantiating the class now only requires the input table to be specified (i.e. dnd_spell).
- Output fields automatically selected based on filter/sortby input.
- Support added for hierarchical sorting of fields.