fix minor db problem