Eliminate num_nodes on map? calls

This uses the knowledge of how many rows we just inserted to avoid a
sequential scan of tmp_nodes

Fixes pnorman/openstreetmap-cgimap#5
Merge pull request #22 from pnorman/num_nodes

Eliminate num_nodes on map? calls