Cleaned up the sql batch installer

Cleaned up the sql batch installer so that it makes use of 'dir' a little more wisely. Also fixed the issues with re-installing of some databases multiple times.
Reimplements the mysql setup script. This version is more maintainable, cross platform, and has more options.
Fixed issues with create.sql

Fixed with the sql script that sets up the db which made mysql mad and caused issues with installation on brand new installs.
Minor syntax changes to prevent more mysql anger.

Not sure if this is necessary, but doing it anyway to make sure.
Finally got home to test this. Fixed another minor issue. Script now works as expected for a fresh db.
Merge pull request #563 from rcythr/develop

Python based mysql db installer script