config to localhost db