add some simple migration framework

it's not really working yet because of some errors caused
by malformatted SQL or the like. I tried to catch the exceptions somehow
but wasn't really able to accurately figure out whats going wrong