why upcase? seems like it'll add confusion especially if primary key is not 'id' to begin with. Perhaps just quote the original in whatever case it's in.