Make sure the highways and segments have paths
Perform bulk insert manually

Apparently executemany() does not do bulk insert but instead iterating the
values one by one and do insert separately.

Reference: http://wiki.postgresql.org/wiki/Psycopg2_Tutorial
Insert per 10K items

This apparently makes the insert faster
Store highways' coords
Store segments' coords