first version of the sql migration script