Jkerihuel/indexing sql

Tentative pull request to merge jkerihuel/indexing-sql from openchange/openchange into Zentyal and reduce paths of inconsistencies