offset_thread clean up
offset_thread: functions renamed to align the name if the others
update_sql_offset factorisation
Hashtable replacing now done only once