Separate connect from createTable.

A few bug fixes/clarifications.
Added a namespace constant