change getAllItemsForTag to search by tagName instead of id
cleaning up all files to rid them of unused variables which were being included
adding the sql magic, commented out at bottom of page