Likes: bug fix – check for keys before creating

The likes module might have been enabled previously and then disabled
without removing the table from the database; this query ensures we
don’t try to create keys if they already exist.