First draft of Databasetopology.cpp