added RelationDAO, relation models, RelationController and stub views
added QueryDAO, QueryController, stub views and documentation