Fixed a bug which prevented database creation.