added creation of sql-based bktree