add expanded_mode, \dt and change connect to \connect or \c