sqlite3: clear bindings on errors and more care with return

* call sqlite3_clear_bindings when step fails
* more miss-placed returns

Signed-off-by: Adrian Negreanu <adrian.m.negreanu@intel.com>