Add grade table hash table to database