Make CSV and JSON processing compatible with merge of master
Make CSV and JSON processing compatible with merge of master

Also use new Flask-SQLAlchemy 2.0 behaviour.
Make JSON and CSV creation match the master branch versions.

OpenNewsLabs/pybossa,geotagx/pybossa,PyBossa/pybossa,geotagx/pybossa,Scifabric/pybossa,Scifabric/pybossa,inteligencia-coletiva-lsd/pybossa,stefanhahmann/pybossa,jean/pybossa,stefanhahmann/pybossa,jean/pybossa,OpenNewsLabs/pybossa,PyBossa/pybossa,inteligencia-coletiva-lsd/pybossa