Got the unique index stuff working and tested. Added a trait for safe insertion into Mongo