added example for master-salve db mode