elmah, unity, mongo repository code, major refact