refs #404 retained loan_code as char to allow migration