Lookup graphs by numeric id

Require uniqness of the pair (group, graph) in order to make it possible
to have same graph names for different groups.
Graph name can not be used as lookup_field anymore.