fixed first-run database init to only run on first-run... finally.