Fixing BOOL bugs + edit_report ->PDO