Adding block difficulty to db