Cleaned up db methods; added config, log files. WIP fifo reader. Removed old files