db functions for getting POIPoints from db by cat_id