disconnect database after bom