MULE-7462: New Database: Change behavior of streaming within stored procedure

_ Applying modifications suggested on code review