fixed wrong sql for legacy_phenotype_status of a gene