Add SQL Equivalents Of PHP Migration Code