initialize the connectionbefore using it
Merge remote-tracking branch 'origin/master'

* origin/master:
  updated ImagesIndexer to inherit from AbstractIndexer and to batch get the observations from the observation server and batch commit to the impc_images core. Needs testing!!!!! Previous version worked.... could refactor so not using prepared statement but sql as a map - but as only takes 4-6minutes to run currently anyway...