Some updates to allow for larger tables, and some more progress

I'm currently using this and thought at least some print statements and ability to batch the writes rather than one big fetchall would be good.