Force load of core WordPress functionality as $wpdb was not always
initialized.