move loading mongoose model out
minor change