Fix the use of DINSTINCT in SQL queries
It's possible that even if we request the primary keys, we can still have duplicates, based on the joins made for instance. So, we should check if requested attributes ensure that there will be no duplicated results in queries. If they don't ensure that, we should use a
boolean defining whether the 'DISTINCT' option should be used in the 'SELECT' clause.