High Throughput Density Functional Investigations of the Stabilities, Electronic Structures of XYZ2 Compounds