db + opened files persistence