This way you can give a full SQL engine to any key-value store out there..
Thats why the Sqlite4 are being designed to be more plugable.. with a shim key-value wrapper over the storage backend that can be changed, in compile time, or even in runtime given its use of C callbacks.. (but dont know any reason someone would want to to that.. to do a runtime switch anyway)
From clause 13 of the AGPL: Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the work with which it is combined will remain governed by version 3 of the GNU General Public License.
[1] http://www.gnu.org/licenses/agpl.html
[2] https://en.wikipedia.org/wiki/Affero_General_Public_License#...
Edit:
Hold on. As per Slashdot[0] and the license itself, BerkleyDB Open Source is licensed under AGPL, which means that it will be triggered even as part of a web service. That sort of rules it out for me personally, although I'm curious how much a commercial license would cost.
[0] http://developers.slashdot.org/story/13/07/05/1647215/oracle...