$wpdb is actually not needed here