XPages Basic Search shows you how you could search and filter your data sources in a Xpage.
Can not access the database.