add createMode() function and mode table creation into pxadmin_create_tables.sql remove the use of pxtables.c