Fix missed curly braces for an if statement
Select ordinal positions for primary keys because index column ordering is meaningful
Add support for column comments with table comments