Split out MYSQL class as separate file. Renamed some bits.