Fix database creation.