#350 Fixed bug that was deleting outputs all the time.  Changed all get_or_creates to get() for singletons.