Fixed migration errors in v0.9.32

I had to change execute to select_all and use explicit fields enumeration in the SELECT as otherwise connection returns an array of Mysql2::Result instead of array of hashes.
Also, fixed a 'nil-dereference'