Updating Referer to database for each event.