minor db bug