sqlite3: add params, put schema and statements toghether

use id-s for files

added templateParams

Signed-off-by: Adrian Negreanu <adrian.m.negreanu@intel.com>
run tests on -r

Signed-off-by: Adrian Negreanu <adrian.m.negreanu@intel.com>
update search.py