Fixed bug with initial database creation.