add stale option to couch requests in exports view

http://manage.dimagi.com/default.asp?123161

also replace get_db with model-specific references