Added check to reload mysql