SOme debugging code trying to get a hint on the sqlite problem