upgrade hibernate from 4.1.7.Final to 4.1.12.Final
minor test updates.
minor sql repo improvements and experiments.
more selects as named queries, also indexes added