Fixed upgrade process to work with v55 databases