Update database.cpp

Need to change this for issue #61