UserDAO and DiscountDAO hibernate implementation.