Added verification to TaskDao, to answer if the object has saved or not.
Added several improvements to hibernate config.