Limit whitelisting to usage of wpdb, not including missing cache
Some syntax tweaks, and tweaks on unit test to cascade changes