several improvements

improvements in pl/sql module