Bug Fix: proc2.sql : added check for unique SID