[c12523] Add database changes to support more data for DB Script texts
[c12524] Add const-correctness to Text related functions