sqlite3: add params, put schema and statements toghether

use id-s for files

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

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