only do a dbsync if on the database node

ceilometer should only try to reset the database if it's actually
on a node where there is a database.

Change-Id: Ibcfec0556829bff0938e3769c19d34ae6c02b738
Merge "only do a dbsync if on the database node"