Sqlite dialect: fix create table index statement and add unit tests