finished off database and memory stuff in analyze_tar.c and edited makefile to include appropriate flags