I've created a log in system using a database and query builder to return the correct values, however, once the users signed in I need to bring up the rest of their data from the same table in the database. How'd be the best way of going about this?

I'm not sure whether the log in should be changed to use the primary key as well and whether this may help but I don't really know how to go about this.

Any help would be much appreciated!!