Add constraints to the neo4j db.