1. connect to simulation database from shell. 2. save history and workspace