refine listview with db.