Organize code. Write tests
More movement of files, and more cleanup
Move db files inside folder "db".