add derby and mysql compliant queries
Merge pull request #8 from stefanopuddu/jpstats_evolution

Thanks a lot Stefano, great job, very useful. We are waiting for SQL Server compatibility.