Fix sqlite search performance
Fix sqlite search performance

 - Combination of
    - Using escape (sqlite then favors a table scan, strange...)
    - not having the correct indexes

foens/OpenCVR,foens/OpenCVR,foens/OpenCVR