Added another query for getting election id's for candidates