Don't follow promises past global env.
This helps a bit with #18, but still isn't quite right. I'm not sure
how to avoid the lazy load database