Added a support for a relation without anchor (with bug in database see #33) and fix #31