Added deposit and withdraw capability to the database.
Made critical updates to the deposit and withdraw functions. Should work
now in all cases.