sqlite3: updates

* template and function arguments
* innernamespaces
* put sqlite3_stmt and the coresponding query in
  a struct
* use has(Multi|One)LineInitializer instead of hardcoded value
  when extracting references from initializers
* sqlite3_clear_bindings in step()
* getRow in step() should use different sqlite3_ functions
  depending on wether is doing 'INSERT' or 'SELECT'

includes table uses only file IDs

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