add mysql connection check