integrated getdata and DAO together