Move grabbing of user ids to model