bugfix initial database

Fixes fatal bug that blocked the initial empty database creation.