only PG selected - how do I get from param keys to the .where and also have checkboxes default selected