Add charset and autocommit