no longer crashing if database is down at startup