add set_autocommit for database