fix a problem with db creation