fix bug during add new row in db