Revert "Merge pull request #1 from junholy/db"

This reverts commit b31f078b62fcfb83c272401d483c500f25889b9c, reversing
changes made to f616f379c669aded59d1c85f4c0075d60db8e9b9.