db access for index and new last clear time