Changed the stored procedure of scheduled_payment back to varchar

Changed the stored procedure of scheduled_payment back to varchar.  It
didn't work with datetime