populates visit table with pid

Error that I was having during class was due to not resetting the
read_flag on HL7_Q rows!!
removed unnecessary main method