Split files up into card.c, sqlite.c, and main.c. Added makefile.