sqlite3 and tests

Switched to sqlite for ease of use. Also generated a shell for the
testing suite.
Changed tables
erb -> haml, pg -> sqlite3
fixed merge conflicts