moving towards object oriented and class based structure of code.  Also adding sql for system tables.