added simple delete sql check