breaking up the unduplication scheme in an attempt to simplify the code.
working on unduplication where i make three separate queries from mysql