fixing db thing