this task should run only on primary db server, so I would add

```ruby
:roles => :db, :only => { :primary => true }
```

to task definition