Consolidate search engines, added index pg

Other minor features were added (e.g. constraining results on min-max
pair, putting a sum() for the result set, etc