Added Dale's db check script