add a function getElectionInfoList in general_model file

this function can pull the data of the elcection to be used in admin
page and monitor page