Computing distance using haversine's formula at the database layer