Parse DB setup for Events class, merged Mo's changes