pisi: initialize filesdb only if needed