$wpdb needs to be available in order to use it...
Updated README.