better isolated database access in the model by creating the orm package
added unique constraint (entry_id, lang_id, lemma) in mapping.Term