Made SQL execution and clip request work on loops for handling intermittent errors.