save scanned student into database