Added support for alternate base directory for new tables.  Fixed missing set commands in insert that would prevent dynamic partition creation.