Amber sql

This update fixes the performance of updates to the persistent amber db by using sql specific to the type of the persistent db : either H2 or MySql