Bug fix in CI core database