Fix broken code, adding DDL file, and improving bot configuration management