Added priority column to log table