for create_sql func: now can create sql for certain table types