Changed [ORNG] schema to [ORNG.]
Fixed bug with reading registry by raw sql instead of SP