[2154] Fix database setup error on runFromScratch