Added method set db adapter

Add method set db adapter it will be helpful when connection already exist.