update the connect example using the system class

move the old example to a new file connect_no_system_class.py
add an example for connecting minima in a database