Removed useless attribute value field. And fixed mistake in relations.