statistics for db comparing