retry sql Query