synchronized keyword added in DB open and close methods.