Mostly removing / updating $wpdb->prepare as appropriate