Added autocommit for MySQL and SQLite3