Remove multicolumns index. Add a hashed_index column, indexed
Compute a hashed index (md5) and use it to determine if an activity is already stored in the db
Add a multicolumn index on sample_id and order_id
Do not set is_current here
Handle correctly the flag is_current