def execute(connection, statement):
    """
    execute sql command
    
    @Args:
    * [connection]
    * [statement]

    @Returns:
    * [int] depends on how many rows are affected
    """
    with connection.cursor() as cursor:
        rows = cursor.execute(statement)
        connection.commit()
        return rows
