Corrected database creation to find database in /res/ folder