add DAO impl and ut for agency election

Signed-off-by: free-walker <wally.1981@yahoo.com>