Added BankRepository for database storage and test case for detecting ender-chest close.