fixed initDB for correct directory and JSON