Added register events method. Stubbed out, did database initialization