develop DbAdapter

*add getVar()
*review