Feature/mammothbane/database framework

genericized database handler built
event-specific handler also built