Update BankDatabaseManager.java

We may have to consider the synchronization while opening the database for the write mode. Thus, we can prevent to write to the database concurrently.