Add index on domain_id