Replace Stats with Query and add ConfiguredConnection to manage the DB connection.  Read queries from config file with Rake task to populate DB. Switch from MySQL backend to SQLite because this just doesn't need the overhead.