Query widget

Not quite ready for merge yet. Need to make a few more changes
I would do this as a dict
```
_lookup_dict = {str: LineEdit,
    int: LineEdit,
    float: LineEdit,
    datetime.datetime: DateTimeBox,
    bool: CheckBox,
    list: ComboBox}
input_box_type = _lookup_dict[key_type]
```