add publish IEvent interface and  implement
change localdb directory