added unique _id constraint when doing inserts