Whitelist bugfixes

I fixed the bugs in db_whitelist.py and made a CPEList class to hold all the common functions and variables of white- and blacklist. I also layed the basis of the blacklist feature