scripts for text processing for CLI database