db: add queryParkIds function