Setting up function for constructing the user table with users