MDL-46576 core_grade: moved natural weight database changes into core