remove mysql_query (should be in plugin)

I think this was missed when the mysql_query functionality was split into the plugin. This should be placed in the mysql plugin instead of in the core code