Deposit Control

Now correctly handles arrays.
Prep towards final deposit into database.