adapter: fixed return value in insert