Revert "database fix"

This reverts commit 0dacd7ba8afbb81b24f8d81c80e4d5ac87dfb76f.