select only distinct resources, added drop tables file