First attempt at MySQL support

Seems to work!