Database "construction".
Configuration file module.
Main connected to DB and passes the flow to GUI.

Go for it.