Update db.cpp

added cr