Read-only databases: some queries (such as distinct queries) tried to create temporary tables, which failed for read only databases.