getdata now removes duplicates in DB