Fix an error using session only in respond
Use session instead of engine.
Use db.session or session properly.
Fix session.execute format.
Merge pull request #864 from PyBossa/issue-update-task

Issue update task