Add method to close gorm db connection