Patching database