Add SQL and migration script