refactor dbwrapper func names