Read-only database access with schema inspection