make model independent of mongo collection