fix ceilometer db init bug.

when mongodb restart, can not connect.