Fixed a few database bugs.
Finished card details activity.