fixing db scipe