makes search sortable
adds uniqeness constraint on opinions (book_id, customer_id)