toBSON withSeq flag.
Proper namespace for inserted items.
Init lastSeq on connection.
Properly update lastSeq.