fix sql batch statements for mysql.
code cleanup.
Merge pull request #118 from nla/amber-sql-batch

Amber mysql batch statements refactor