Fixed up the initDB process