Implement rowsAffected.
Fix auto-commit.