use ejdb
remove some debug
works with ejdb now.