added query number to query to prevent mysql error
fixed another migration error
Merge pull request #26 from hsleewis/master

fixed two migration errors