Fix PC matrix calculation from CD matrix.

This fixes a bug with SWAP files.
Write some broken tests.
Fix CD matrix test and test file
fix database test numbers
Conflicts:
	sunpy/database/tests/test_tables.py
Merge pull request #1188 from Cadair/cd_matrix_fix

Cd matrix fix