Replaces --events_store option with the pair of --persistent and --db options
Uses shelve module to store events