Switched package prefix to realtime.store and use onXXX for event register