added master-salve db support for db widget, close #133