db.beginTransaction(SqlJetTransactionMode.WRITE);
String sql1 = "CREATE TABLE IF NOT EXISTS TESTXX (a int, b int, c int, "
+ "d int, blob blob, PRIMARY KEY (a,b,c,d))";
String sql2 = "CREATE INDEX IF NOT EXISTS IND on TESTXX (a,b,c,d)";
db.createTable(sql1);
db.createIndex(sql2);
db.commit();
db.close();
} catch (Exception e) {
e.printStackTrace();
}