Fixes fifo. Modifies makefile to allow multiple mains. Renames db file to be able to exclude it.