Representing Complex Semantics in Database