Work around read-only objects in native databases