sqlite: small tweaks
dwd: small tweaks