finished Mysql Haversine