Stored procedures for JIRA SYSDBA-747