I have implemented a similar system -- it can work with scanner-bluetooth-iPod or smart phones and tablets (iOS or Android). The request to the database is via web server (http request), record for CSV could contain user, barcoded text, and hh:mm:ss timestamp and whatever else is needed. Email could be sent automatically at close of business day, or triggered by scanning another barcode dedicated to "clock out"