Put training instances in a sqlite database. We should be able to fit in memory now...