Created script to compute map from db instead of over web api