working on dbwrapper