Fix a bug with the DB importing.