sqlite: add more debug output