implemented the function to bring back accounts from archive