Added GORM persistence for oauth codes