adds get_table_counts, adds comment to DB.php