small mongodb library for dispatch