Core: Database failsafes for first-start scenario