Add braces to error check if statements. Add db file. Fix typo in Makefile.