Fixed db_scheme build and version in migration from 4.X to 5.0