finish custom gorm implementation for hacking in user switching