Fixed nullreference bug with uninitialized table

Connections were being made before tables were initialized.
removed debug output I left in by accident