Basic hook system, and working MongoDB inserting