Optimizing & Refactoring code. Extracted effect code from stats. Added the sqlite singleton. Fixed some filters/annoters