avoid duplicates in database

dont add student to database if student_id is already in there. Instead automatically send out Login-Information, once a day.