add transaction/3, is_commit_before_close/1

 transaction/3 support one atomic sql execution with no nesting， Sql declaration is Reference to 
http://dev.mysql.com/doc/refman/5.5/en/commit.html
the testing Runtime environment is mysql 5.5.34