Finish database APIs for missions.