implemented a populate listview from database method