Added a few functions in both SQL and IO, tested/fixed the creation
(but not implementation) of every SP/function, replaced --
comments with /**/ (for compatibility with programs such as phpmyadmin)