How to Run a Database Stored Function in a Job