Fix deployment. Add migrations library