Rework use of $wpdb to $oDb