Fix log message when setting peer role in the database