Utility to write User-Auth messages to the database.