add order manager, fix some hibernate problems, #9