Add more exceptions and checks to SQLite reader

This cleans up the sql a bit before we regex matchit
This also then throws exceptions when things are not
executed perfectly

This also removed the debugloggin added previously

Change-Id: Ie34435b85ac5e159f5bc6f6e30b1794f20dde3ea
Merge "Add more exceptions and checks to SQLite reader"