add support for creating INDEX when tables are created

- tests are incomplete
- columns and column order are not checked when creating a multicolumn index, only names
- upgrading database with index recreation is not done