Ab initio calculations on model systems miming molecular batteries