if statement for empty database
added student_tally method to count number of students