fix class addrowtobd (function addtodb)