casted $wpdb as global