Adjust unicorn ActiveRecord connection handling

These were confusingly using the not-recommended `and` operator when, as
far as I can tell, should be using an `if`.

Change-Id: Ib94f2fb5104b9051cb0946d45fb8dd4a25df28f2