adding hostname check to db tools