Refactored openTab and editTab annonymous function logic to use lookup dictionary for controller mappings
Altered model to make use of QtSQL connection and added controller logic for model-based views of tables