Adding some spring and changed the hibernate file