They performed the service of their God and the service of purification, as did also the singers and gatekeepers, according to the commands of David and his son Solomon.