db: avoid use of errno field name