db: allow both "Id" and "ID" for primary key names

As per the Go style guidelines, identifiers that are acronyms should be
properly capitalized. This will reduce the friction that is common with
having to straddle two languages at once (SQL, all lowercase identifiers
vs. Go with uppercased identifiers for exporting)