adds generateBaseTableName
creates util.js
prepping preprocessor
moved switching logic to util.js