db_sql_exec_poll_for_success function

Poll a Query Until Successful