fix migrations dependencies to use postgresql