Fix bug 1076913, revert to horrific ancient DB library since modern one is not supported
Fix review nits, specifically adding explicit database connection to mysql calls.
Merge pull request #10 from lauraxt/1076913

Revert from mysqli to mysql library :(