Fixed bug in using TingoDB insert/save.