switch master-slave db