Fix build

There were some dependencies on core-db.