def extract_from_db_sql(cursor, table, column, col, value):
    """
    Extract a value from the database.

    :param cursor: database cursor object
    :param table: db table name
    :param column: db table column name
    :param col: db table column name
    :param value: value of db table column name to match
    :type cursor: psycopg2.extras.DictCursor
    :type table: str
    :type column: str
    :type col: str
    :type value: str
    """
    sql = "select {} from {} where {}='{}'".format(column, table, col, value)
    cursor.execute(sql)
    return cursor.fetchone()
