registerTo now with mongodb syntax