created db view for search