added key support, added CreateTable query