use mustache template engine to build loading queries