Do weird singleton-or-not thing with dummy db