fixed issue with from and to migration ids not including single quotes around them in where clause