Cleaned up openTable and newTable related methods