Follow-on: do not override global 'db' in compact tests