Created inline sql function to add spells to students