potential fix for db shutdowns