migrated grade from enum to standalone table