Updated CRD sql script