Added a second query which will insert into the database the user id of the person being checked in.
Minor naming bug