Drop anonymous user before performing mysql commands. ..

Modified code to do everything in one code block, rather than seperate statements - provides nicer error messages, and doesn't require repeated login/logoug to mysql

Fixes bug described in issue #217