add autocommit for license histogram agent selector
Merge pull request #30 from wuan/agent_selector_autocommit

add autocommit for license histogram agent selector