Fix invalid sql statements
CLOUDSTACK-7847: Separate ListDomains cmd to use two different views