added EventEmitter class to project, need to delegate json requiests and
db processing to emitter