Issue 2: added clean and wipe stored procedures for cleaning job history