This MR adds two migrations for the source db. The first one adds all tables, the second one adds all functions.
\approve @ds @laurens