Moved version function implementations to a .cc file. Implemented InitFromDb in all core+test classes