Rename accounts to cachedAccounts

This change makes it more clear.
Also, when the database is closing, after cached accounts are saved
they will be removed from the set.