Update database.cpp

Changes in database constructor