Fixed various bugs with event urls and the way they're saved in the database.