Connection details are read from connection.cfg, all connections are closed now after executing any query.