Corrected mysql queries for case-sensitive mysql databases.
BZ 1024233: corrected 'total process instances' count in jbpm dashboard