Added legalese, section headers, moved SQL to its own file
Assume the database is located at the localhost unless specified otherwise
Create script for mysql in its own file