fixing db issue