Set database to autocommit