Modify servlet + js to use new Hibernate

Some bugs left in QuestionDataManager.writeTo() function. Feel like
hibernate prepoerties issue