fixed a missing comma
added an example for overriding the primary key factory