who carried out the ministry of their God and the ministry of purification (as did the singers and the gatekeepers) in accordance with the prescriptions of David and Solomon, his son.