setup @connection before columns flush

this was entering an endless refind loop under rails 3.