Reduced SQL redundancy