fixing db