Fixed db tools scripts