What non-alcoholic liquid can I use to store Ginger, both cooked and raw?
Vinegar is non-alcoholic, and my suggestion would be a brine of some sort, essentially pickling it. Alternatively you could just dry it out.

I should also add - Ginger is a root, and can generally be kept fresh in a cool dark place (ie. a root cellar) for some time.