DB script issue fixed with messaging