Added the option to send/write to the database

Added the logging capabilities for multiple people with a database to track them