Added additional queries for completing the transactions when a user joins the lobby. Still not completely working.