MT#9067 use one MySQL connection only on NGCP

Don't close the connection, just the cursor.

We may need a ping function to test the connection.
https://github.com/keplerproject/luasql/pull/12