Simple grade database in a script