create caps_cache if it doesn't exists (can happen if logs.db is created in 0.11.2 version). fixes #3512