Database page create search query from form and perform advanced search