Add a mongodb at-with-default function