def connect(self, ac_name = None):
		frappe.local.db = frappe.database.Database(user = self.get_db_name(), \
			password = getattr(conf,'db_password', ''))
connect to db, from ac_name or db_name
dataset/ETHPy150Open frappe/frappe/frappe/auth.py/HTTPRequest.connect