Fix up Rails helpers. Add a way to dump and reload the db.