Improved MySQL Check function with max retries