Adds basic support for realtime queries