Fixed casing issue
Working toward more generic SQL implementation.