fix
new buildDict function with out bdb