def build_db_path(package, db):
    """
    Build the full device path for a package's database

    :param package: The package's name
    :param db: The database's name
    """
    if db.endswith('.db'):
        db = db.rsplit('.', 1)[0]
    return '/data/data/{package}/databases/{db}.db'.format(package=package, db=db)