Revert "database bugfix?"

This reverts commit 64eb3a35552755b5e920a8da0ff29aa1b69288e6.