Fixed database creation.