mongodb connector adding functionality to store models