[#12] Add resourceId as the primary key. Maintain id for now.