update-room function now updates wifi

also did some formating and went over the update sql quary, it should be
correct