setup hibernate and save message success