Add function to store quiz submissions in Firebase