Add a fatal error log method and use that from the database class.