db tools to lib