added a new method to dbwrapper