archiving old accounts

added account archiving in to redis persistance, so that unused accounts are not loaded anymore
This comes up regularly so I'd recommend putting that logic in a function instead of copy-pasting it.