updated hibernate sql in dao classes