Added the distances database into the core library