Added a ping for mysql queries