Cleaned up unique_authors and made the SQL more rigorous.