* Changed logic behind FileStateDatabase