Changed $wpdb references to $oDb