move DB.cpp to implementation folder