Database conversion bug: Integral division in output format