Revert "Converted sql for first feature"
MySQL not viable due to inability to properly separate server and DB code,
and inefficient handling of stored procedures.
This reverts commit 5b07293c6ded07b7c854e131ee1178152d8c8c4d.
Revert "Converted first script from MS SQL to MySQL"

This reverts commit d8ca948af0dda511aa821059c3c6d15cb272a02f.