Patched dbslayer