Added disconnect for database.