Misc code-cleaning
Added debug info for erroneous queries
Added data validation for Personnes