Fix sql error with ' in package form. closes #2552