bugfix: error when creating a new db