Added postgis routines for preparing data.
Use long int when printing.
Added script to upload to db.