MySQL fix

Worked out most of the MySQL stuff, although it isn't much. Planned to
modify this in version 2.0 and make it fully object-oriented. Uses
MySQL(i).