Simplify hits/mappings relations queries

* Simplify initial INSERT IGNORE (was using old joins from before move to HostPath)
* Simplify UPDATE to avoid WHERE (mySQL can only use one index)
* Ask mySQL to use the right index on update (feature added in 5.x)