Fix permissions on ensure_clean_tables