Fixed MySQL setup script.

The MySQL setup script was not working properly in the event the process exited before a connection could be created. I removed the explicit `exit()` and wrapped the queries in `connect()` block with `end()`.