store mongo result in local variable

- addresses #5