Added DISTINCT to getBinTypes and getBinStatuses queries