Db: improved handling of Decimal values