changed so the mongoose model extends orm model