Made createQuery not public and made subscribe query callbacks only get called once