adding validation and relations. decided against using gorm instead of gorp for now: best do it right, gorm seems big.