pulled out card db capabilities to their own files
[#28]