moving $wpdb outside of the conditional so both cases work

Fixes #182
updating the change log to reflect the latest tag