As used in the Agreement on Detainers [31-5-12 N.M. Stat. Ann.] with reference to the courts of this state, the phrase “appropriate court” means the district court.