Moved constraints/index/labels to use connection as an argument