Beginnings of generic SQL repository.  Import module types.  Out-of-turn module compilation.  Reference compilation.  Order param added to repository.