patched db