Possible fix + onTextEdit

Added onTextEdit creatureevent which can be triggered by using
player:doSendTextDialog
Set so reserve/releaseScriptEnv is used when updating the database