Patched db integration tests