abstract db into a class
add put and exist
fix in db and qdict.cpp
clean old code and add debug info