This borrows a lot from btcsuite/btcd 9918e2a56196fb6b1b2837a9e7fb84f3454098fd
This commit removes the old database package, moves the new package into its place, and updates all imports accordingly.