fix drop and create command for connections with master slave configuration