Created database function to return collection of ticket rows based on search and filter parameters.
Merge remote-tracking branch 'origin/database' into database