def get_rank(c, domain):
	"""Gets the alexa rank for a domain. Returns False if not found"""
	
	entry = c['domains'].find_one({'domain':domain.replace(".", "#")}, {'alexa.rank.latest':1})
	try:
		return entry['alexa']['rank']['latest']
	except Exception:
		return False