Add workflow cleanup on startup

	modified:   base.py
	modified:   db.py
	modified:   managers.py