revise pharmgxTable creation script