Implemented base engine functionality with database repository and some test events.