more exception unit tests

These ones cover exceptions related to the database.
Current Coverage:
	68%   39-42, 76-81, 106-109, 126, 145, 147-148, 162-164, 169, 174, 198-221, 233-250