Update c program according to new db field available_funds