CONVERT FROM SQLITE to POSTGRESQL