added notes to describe sqlite query debug