Corrected mysql queries for case-sensitive mysql databases.
(cherry-picked from ac589b5)
BZ 1024233: corrected 'total process instances' count in jbpm dashboard
(cherry-picked from 131c247)
added version -{project.version} to fileName

(cherry picked from commit 9cda64ce90c2cf3bc6174e8e141b61db64f4ec91)