Improved Speed of lookup, moved to native wpdb