Add shutdown for database.