Added event related scripts

Also added a script to parse spatial data from the database