overhauled db haversine query stored procedure for optimization and making it easier to understand.  Added haversine helper columns to events to store precalculated values for optimization.