Implemented database backend for adding, checking, and syncing cards