fix bind functions to use reference to value
fix autocommit always occur