database closen in package accountManager