Track file state exclusively in DB.