Fix some bugs flushed out by compiling, running, and first testing.
Set db intervals up correctly, further stubbing out of config setup, create folders when
necessary.