Some thoughts...
Unless you have a massive multi server mail installation, or need to
manage mail accounts from a custom program, don't mess with a database.
CDB is more efficient on a single machine. Even if you are writing a
custom program, look at vpopmaild to manage your mail accounts.
If you want to move from one machine to another the UID, GID,
permissions, ownership, and paths for all files used by qmail, vpopmail
and apache must be identical. I suggest you copy and paste the
/etc/passwd and /etc/group lines rather than trying to type them. Many
of these values are compiled into qmail, vpopmail and qmailadmin.
You will need at least /var/qmail/alias, /var/qmail/control,
/var/qmail/users and the entire ~vpopmail directory. If you are
updating the vpopmail code, do make install after copying the
~vpopmail directory. Be sure all ownership and permissions are preserved.
Rick