Amber mysql batch statements refactor

This include code refactor for AmberQuery and AmberDaoMySql sql updates to work with mysql database.