Added config to use mongo instead of hibernate.