Prior to this change, Berkeley DB (BDB) was the database used for
persistent storage. However, due to licensing issues, only BDB up to
version version 5.3 is supported, a version that was marked for removal
from the ports tree on 2022-06-30. Redland supports a few different
databases for persistent storage. Add PGSQL and SQLITE as alternatives,
and switch to sqlite by default.
Also:
- patch for build failure when MYSQL storage is chosen
- pet portclippy/portfmt
- hook in test (1 of 17 tests fail, but upstream's bug tracker is broken)