Support reopening database