UserSearchIndexAttributes inserted directly not showing on Member dashboard

Permalink
Hi Concrete5 community,

I'm working on a system where users registed automatically once they have filled in a form after they have made a payment.

I've manage to get the form working and everything however when I do the $db-> insert (); of concrete 5's API to the UserSearchIndexAttributes table directly I manage to be able to write the user details from the form (i.e firstname, lastname, email etc) however it seems that these values are not showing on the Dashboard -> Members - > SearchUsers but the data is present in 'UserSearchIndexAttributes';

Is there a way to write directly so that the attributes I set will be able to show up on the Dashboard?