Revert "swap out DB_BTREE for DB_HASH since it performs better"

This reverts commit 4a022e716ea538670b9ef9338c22e533f45aa3c9.