Move the database core out of this repo.