This PR introduces a draft version of the database layer changes for the V5 major release.
You can read it here.