Implement READ_ONLY mode flag (uses "PRAGMA query_only=1").