Migrate sqllite to postgresql