Add sql_vars option.
Rewrite.
Create schema if does not exist.
Remove locking.
Sort migrations before running.