db: write/3