delete useless imports, add exception handling in GenericDAO