removing usages of $wpdb where declared but never used