bit of work on argument parsing and its integration, removed function pointer for md5/mtime checking and replaced it with decision making based off global arguments
moved code that doesn't interact with sqlite out of sqlite.c