Fixed issues with the different types of table models not getting passed around properly. This caused a nil pointer exception which was hidden by a future without a try-catch block.
Changed the set-table-model and set-table-listeners functions to a single initialize-listeners function in the TableDBListeners.