Effective Single-band Model for the Cuprates: Role of Apical Oxygen