Fixes to make get_weights work
little fixes to database thread
Merge branch 'master' into ring_buffer_scaling

Conflicts:
	spynnaker/pyNN/spinnaker.py