fixed problem of inserting same tuple. still working on figuring out why queue doesn't match table.