database querying and display

we query the local database and display the result in view2