added sqlite query support