How do I use a previous database?
did you install Nextcloud yourself? Otherwise I wonder why you see the setup page. Usually DietPi install option is able to pick up existing SQL dumps during installation, if available on specific place.
I always install from the Dietpi list of programs, but this time a different screen appeared, and since I'm a bit of a novice at this, I got lost.