fixed bug where ChangeLog token was not correctly inserted into database