fixing db problem