Fix bug with check_domain, add elasticsearch backend