Add handling with mail_hist table
Add JAX-RS in web.xml