Updated database creation process.