Added script to compute coordinates. Fixed bug in script to compute map from db