def db_check(name,
             table=None,
             **connection_args):
    '''
    Repairs the full database or just a given table