domain-loader: fix sql query for domain preview to use index