The wrapper for execution of cron jobs in plpgsql stored procedures