created new EntityDatabase class and started testing