Erlang implementation of a SQL migration application