Db submissions

This creates a db table for Submissions; you will need to rm you development db and `python -c "import db; db.init_db()`. This is a prerequisite for #301 and "favorite" sources as mentioned in #302. There are also wins in terms of future extensibility and performance (we should only hit the filesystem if we need to).