added database#close