Fixed, cleaned up, and refactored BankAccountDB sample