pass env string into database methods

* not awesome but
* in the service of extracting into Reader monad