[#295] no sql query in generate_movement_hash