database closen in package transactions