Moved tables to a full module

This will allow submodules for future extensions