added search field to query and diplay db