added sqlalchemy ping method to help with mysql has gone away