Rewrite

clean rewrite and started writing models, migrations, views, and controllers from scratch.