added file output of sql statements
fixing bugs in sql output to file
Merge remote-tracking branch 'origin/master'

Conflicts:
	script/migrator.rb