
	# check if gateway exsits
	"""
	gw_id = "38e998af01b5c8d8287a817211e5e52fb23a3e3bb031c0c1437746d9e148bd17"
	if(not col.count_documents({"uuid": gw_id})):
		print("# Invalid registration request!\n## Received gateway ID doest not exists in local database!")
		# self.write("....")
		#return 
	
	print("Gateway ID valid and registered in local database")

	doc = col.find({"uuid" : gw_id}).limit(1)[0]
