HTML-based user interface for getting subsets of PostgreSQL database