Make select_(ways_nodes_relations) return ints for pgsnapshot too