Fix: python-mysql library requires iterable types

- python-mysql requires the queries to be formated like so
  "SELECT id FROM project WHERE name=%s "
    "AND analysisMethod=%s", (name, analysisMethod)

- when the query only has one variable a tuple must still be
  otherwise execution failes
  e.g., ("SELECT id FROM project WHERE name=%s;", (name,))
    not ("SELECT id FROM project WHERE name=%s;", name)

Signed-off-by: Mitchell Joblin <mitchell.joblin.ext@siemens.com>
Reviewed-by: Wolfgang Mauerer <wolfgang.mauerer@siemens.com>
Fix mismatch between dev ids and adjacency matrix columns

- When querying the database for developer ids, the results
  does not necessarily match the order of ids in the
  adjacency matrix, yet we make this assumption in later code

- We now encode the adjacency matrix header with developer ids
  instead of names, then we compare the ids we get from the
  database with the ids we parse from the adjacency matrix
  storage file

- If a mismatch exists we remap the order correctly

Signed-off-by: Mitchell Joblin <mitchell.joblin.ext@siemens.com>
Reviewed-by: Wolfgang Mauerer <wolfgang.mauerer@siemens.com>
Add integration test for network construction correctness

- None of the existing tests check that the network is being
  constructed correctly from the commit data

- The test will query the database after the analysis pass for
  the network and the person ids, it will then verify that the
  network is correctly linking developers and with the correct
  weight by comparing to known correct network for a given
  set of commits and construction method

- The test will help us to identify any problems with the
  developer ids and the reference to the network, in addition
  to verifying that the entire network construction process
  is functioning properly

- The test is currently only implemented for the proximity
  based analysis, for full coverage we need to calculate
  a ground truth network for the other analysis methods

Signed-off-by: Mitchell Joblin <mitchell.joblin.ext@siemens.com>
Reviewed-by: Wolfgang Mauerer <wolfgang.mauerer@siemens.com>