use req.popit for database name rather than deriving it from slug

as they may now not be the same
make sure images set over the API are displayed

At the moment the popit front end doesn't follow the same data model as
popolo for images so when you include and image URL over the API they
aren't displayed by the website. This does the required processing on
the uploads to fix that.

Fixes #432