modified db input and added geopy