Refactoring base hibernate dao to support better error handling and
migrating to java.util.logging instead of log 4j