migrates database to postgres on 'mydb' and took out localhost