refactoring - mysqlfuncs
refactoring - mysqlfuncs retry