added close db command