update distance count by database ....