Made two modifications:

(1) Now saves significant locations into a database table
    in order to save time during subsequent event generation.
(2) Collection function updated so that it updates as well
    as inserts.