bugfix on db creation