wip. about to change version/table mapping
getting there. still needs some table creation and sql parsing