Revert "almost done with the db, will work on it tmr"

This reverts commit 0c58e90926f15ac6cc1b0f07ab294a3dfcdcfdf9.