def query(conn, sql = ""):
    """ makes a SQL Query to the connection
    :param conn: sqlite connection object
    :param sql: sql query
    :return: cursor rows object
    """
    cursor = conn.cursor()
    cursor.execute(sql)
    rows = cursor.fetchall()
    return rows