Begin already calls START TRANSACTION
Fix error string format
Add max open connections