database closen in package login