move compilation database out of core