The only command of cash/deposit/withdraw financial stuff is not enough for system to work, you have to create some functions to save status of cash first otherwise it won't give you what you want from them. Try learning SQL Language which is used for saving data and itself is a database, I'm not in this stuff from long time I have forget most of the stuff so I will advice you to learn sql it's basic it's command how it works how it runs etc.