ReadOnlyBackend: Fix broken queries.