Switching DB and CPNotifications to ARC. Minor code improvements.