Dear lhooipg,
Good to hear that you have solved this!
Yes you can upgrade from any 4 versions, please keep in mind that the latest version is 7. this would be a big impact, please make sure you have a good backup from MagicInfo and your database.
Understand that Samsung advises using PostgreSQL 9.6 as latest, we know higher will also work but it is not supported.
Kind regards,
Pepijn.