import re


def scrape_console_db(html):
    """ Scrapes DB connection count from Console page HTML """
    # 1.34 database connections example:
    # <li>DB:35/151</li>
    # 1.36:
    # DB: 33/1000
    db_regex = r'DB:\s?(\d+)/(\d+)'
    db_match = re.search(db_regex, html)
    return {
        'db-used': int(db_match.groups()[0]) if db_match else '',
        'db-max': int(db_match.groups()[1]) if db_match else '',
        }